/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.icode.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 *
 * @author Hot_Girls
 */
public interface IModel<T> extends Remote{
    public List<T> fetchAll() throws RemoteException;
    public void save(T u) throws RemoteException;
    public void update(T u) throws RemoteException;
    public void delete(T u) throws RemoteException;
    public T fetchById(Integer id) throws RemoteException;
}
